package com.b.service;

import com.b.domain.UserAuth;
import com.b.vo.Result;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.core.SearchPage;

import java.util.List;

public interface UserAuthService{


    int deleteByPrimaryKey(Integer userId);

    int insert(UserAuth record);

    int insertSelective(UserAuth record);

    UserAuth selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(UserAuth record);

    int updateByPrimaryKey(UserAuth record);

    PageInfo<UserAuth> userList(String phone ,Integer page, Integer pageSize);

    List<UserAuth> getAll();

    SearchPage<UserAuth> findUserAuthByNameLikeAndPhoneLike(PageRequest pageRequest, String username, String phone);

    Result banUser(Integer userId);
}
